{% extends "base.html" %}
{% block title %}Inventory Management{% endblock %}
{% block content_header %}Browse Inventory{% endblock %}

{% block content %}
<p>
	<table width="90%" border="1">
		<tr>
			<td width="30%">Name</td>
			<td width="10%">CAS #</td>
			<td width="10%">Size</td>
			<td width="30%">Location</td>
			<td width="10%">Classification</td>
		</tr>
		{% for item in items %}
		<tr>
			<td><a href="/edit/{{ item.id }}">{{ item.name }}</a></td>
			<td>{{ item.cas_num }}</td>
			<td>{{ item.quantity }}</td>
			<td>{{ item.location }}</td>
			<td>{{ item.classification }}</td>
		</tr>
		{% endfor %}
		</table>
	
	
	<a href="/browse/1/{{ per_page }}"><<</a> 
	{% for pg in page_list %}
	{% if pg == page %}
	{{ pg }} 
	{% else %}
	<a href="/browse/{{ pg }}/{{ per_page }}">{{ pg }}</a> 
	{% endif %}
	{% endfor %}
	... <a href="/browse/{{ last_page }}/{{ per_page }}">>></a>
</p>
{% endblock %}